export  default  {
  install(Vue){
    const components = require.context('~/components/common', false, /\.vue$/)

    components.keys().map(path => {
      const  fileName = path.replace(/(.*\/)*([^.]+).*/ig, '$2');
      Vue.component(fileName, components(path).default || components(path))
    })
  }
}
